#include "display_state.h"


int state_home(display_menue *display_tmp, uint8_t *state_tmp){

    *state_tmp=MAINWINDOW;
    while(1){
 
       switch(*state_tmp){
          case  MAINWINDOW:

            display_main_window(display_tmp, state_tmp);
            break;
          case CHOOSEWINDOW:

            display_choose_window(display_tmp, state_tmp);

            break;
             
          case SHOWWINDOWWORK:
                    
            display_show_window(display_tmp,state_tmp);
            break;

          case SHOWWINDOWBATH:

            display_show_window(display_tmp,state_tmp);;
            break;

          case SHOWWINDOWLIVING:
                    
            display_show_window(display_tmp,state_tmp);
            break;

          case SHOWWINDOWKITCHEN:
                    
            display_show_window(display_tmp,state_tmp);
            break;

          case SHOWWINDOWSLEEP :
                    
            display_show_window(display_tmp,state_tmp);
            break;

          case PROGRAM_EXIT:

            return 0;
       

       }

     }
}

int state_work(display_menue *display_tmp, uint8_t *state_tmp){

    *state_tmp =MAINWINDOW_WORK;

    while(1){
 
       switch(*state_tmp){
          case  MAINWINDOW_WORK:

            display_main_window_work(display_tmp, state_tmp);          
            break;
          case ROOMLIST:
            
            display_roomlist_window(display_tmp, state_tmp);
            break;
             
          case FIRST_BUREAU:
             
            display_bureau_window(display_tmp, state_tmp);
            break;

          case SECOND_BUREAU:

            display_bureau_window(display_tmp, state_tmp);
            break;

          case FIRST_SEMINAR_ROOM:
                    
            display_seminar_window(display_tmp, state_tmp);
            break;

          case SECOND_SEMINAR_ROOM:
                    
            display_seminar_window(display_tmp, state_tmp);
            break;

          case THIRD_SEMINAR_ROOM:
                    
            display_seminar_window(display_tmp, state_tmp);
            break;

          case FOURT_SEMINAR_ROOM:
                    
            display_seminar_window(display_tmp, state_tmp);
            break;

          case PROGRAM_EXIT:
            printf("test2");
            return 0;
       
       }

     }

}
